package com.czmh.etc.onlinepubsys.entity.mingchuang;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

@AllArgsConstructor
@NoArgsConstructor
@Setter@Getter
@ApiModel("ETC订单参数")
@TableName("mingchuang_order")
public class EtcOrder {
    @TableId
    private String id;

    @ApiModelProperty("车牌号")
    @TableField("vehPlate")
    private String vehPlate;

    @ApiModelProperty("车牌色")
    @TableField("vehColor")
    private Integer vehColor;

    @ApiModelProperty("省")
    @TableField("province")
    private String province;

    @ApiModelProperty("市")
    @TableField("city")
    private String city;

    @ApiModelProperty("县/区")
    @TableField("region")
    private String region;

    @ApiModelProperty("详细地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("收货人姓名")
    @TableField("consignee")
    private String consignee;

    @ApiModelProperty("收货人手机号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty("支付方式 0-微信,1-支付宝")
    @TableField("payType")
    private Integer payType = 0; //0-微信,1-支付宝

    @TableField("payState")
    private Integer payState = 0; //0-未支付,1-已支付

    @TableField("orderNo")
    private String orderNo;

    @ApiModelProperty("商品描述")
    @TableField("body")
    private String body;

    @TableField("payNo")
    private String payNo;

    @ApiModelProperty("支付金额,单位:分")
    @TableField("amount")
    private Integer amount;

    @ApiModelProperty("用户ID")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty("用户登录小程序openid")
    @TableField(exist = false)
    private String openId;

    @ApiModelProperty("设备ID")
    @TableField(exist = false)
    private String dvId;

    @ApiModelProperty("ETC卡号")
    @TableField(exist = false)
    private String etcSn;

    @ApiModelProperty("权益包类型 0-权益包一 1-权益包二")
    @TableField("equity_type")
    private Integer equityType;

    @TableField("createDate")
    private Date createDate;

    @TableField(exist = false)
    private String code;

    @ApiModelProperty("手机验证码")
    @TableField(exist = false)
    private String validCode;

    @ApiModelProperty("状态 0-未发货(无设备) 1-已发货(有设备)")
    @TableField("state")
    private Integer state;

    @ApiModelProperty("订单类型 0-铭创 1-上海 2-米米 3-招商 4-联合电服 5-招商单片")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("用户类型 0-个人 1-单位")
    @TableField("etc_user_type")
    private Integer etcUserType; //0-个人 1-单位

    @ApiModelProperty("订单支付模式：0先支付后提交信息，1先提交信息后支付")
    @TableField("pay_mode")
    private Integer payMode;

    @ApiModelProperty("订单渠道来源")
    @TableField("channel")
    private String channel;

    @ApiModelProperty("名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("客户名字")
    @TableField("customer")
    private String customer;

    @ApiModelProperty("产品 0-补胎包 1-香薰")
    @TableField("pro_name")
    private Integer proName;
}
